﻿using Model.CustomDataType;
using System.Linq;

namespace Model
{
    public class Patient : Person
    {
        public override object InitializeLifetimeService()
        {
            return null;
        }
        //This id is automatically generated when patient get medical
        private int patientId;
        private string identityCard;
        private string phoneNumber;
        private string relative;


        public Patient(string idCard)
        {
            identityCard = idCard;
            phoneNumber = "000000000";
            relative = "";
        }
        public Patient()
        {

        }
        public Patient(string fullName,Sex sex, CMDateTime dob, string address, string idCard, string phoneNum, string relative)
            :base(fullName,dob,address,sex)
        {
            this.identityCard = idCard;
            this.phoneNumber = phoneNum;
            this.relative = relative;
        }
        public string getIdCard()
        {
            return identityCard;
        }
        public void setIdCard(string idCard)
        {
            this.identityCard = idCard;
        }

        public void setPatientId(int id)
        {
            this.patientId = id;
        }
        public int getPatientId()
        {
            return patientId;
        }

        public string getPhoneNumber()
        {
            return phoneNumber;
        }
        public void setPhoneNumber(string phoneNum)
        {
            this.phoneNumber = phoneNum;
        }

        public string getRelative()
        {
            return relative;
        }
        public void setRelative(string relative)
        {
             this.relative = relative;
        }

    }


}
